package com.wangzhen.spring.bean.factory;

import com.wangzhen.spring.ioc.dependcy.entity.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author dell
 * @since 2020/10/27 8:33
 */
public class UserFactoryBean implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        return User.createUser();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
